﻿<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="AddNewProviderWorkShop.aspx.cs" Inherits="Admin_provider_AddNewProviderWork"
    Title="Provider Workshop - Admin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="contents">
        <table width="100%" cellpadding="3" cellspacing="0" border="0">
            <tr>
                <td colspan="2">
                    <h1>Provider Work Shop</h1><asp:Label ID="lblProviderWorkshopId" runat="server" Visible="false"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 30%"; valign="top">
                    Provider Company Name
                </td>
                <td valign="top">
                    <asp:DropDownList ID="ddlProviderCompanyName" runat="server" AutoPostBack="false">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvWorkShopName0" runat="server" ErrorMessage="Choose Provider Company"
                        ControlToValidate="ddlProviderCompanyName" ValidationGroup="workshop" InitialValue="-1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Work Shop Name
                </td>
                <td valign="top">
                    <asp:TextBox ID="txtWorkShopName" runat="server"></asp:TextBox>
                    <div>
                        <asp:RequiredFieldValidator ID="rfvWorkShopName" runat="server" ErrorMessage="Require Work Shop Name"
                            ControlToValidate="txtWorkShopName" Display="Dynamic" ValidationGroup="workshop"></asp:RequiredFieldValidator>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Block No
                </td>
                <td valign="top">
                    <asp:TextBox ID="txtBlockNo" runat="server" MaxLength="10"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Area Name
                </td>
                <td valign="top">
                    <asp:TextBox ID="txtAreaName" runat="server" MaxLength="100"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Building Name
                </td>
                <td valign="top">
                    <asp:TextBox ID="txtBuildingName" runat="server" MaxLength="100"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Level No
                </td>
                <td valign="top">
                    <asp:TextBox ID="txtLevelNo" runat="server" MaxLength="10"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Room No
                </td>
                <td valign="top">
                    <asp:TextBox ID="txtRoomNo" runat="server" MaxLength="10"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Street
                </td>
                <td valign="top">
                    <asp:TextBox ID="txtStreetName" runat="server" MaxLength="100"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Post Code
                </td>
                <td valign="top">
                    <asp:TextBox ID="txtPostCode" runat="server" MaxLength="10"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPostCode" runat="server" ErrorMessage="Require Post Code"
                        ControlToValidate="txtPostCode" ValidationGroup="workshop"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Zone
                </td>
                <td valign="top">
                    <asp:DropDownList ID="ddlZone" runat="server" AutoPostBack="false">
                        <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                        <asp:ListItem>North</asp:ListItem>
                        <asp:ListItem>East</asp:ListItem>
                        <asp:ListItem>South</asp:ListItem>
                        <asp:ListItem>West</asp:ListItem>
                        <asp:ListItem>Center</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvWorkShopName1" runat="server" ErrorMessage="Choose Zone"
                        ControlToValidate="ddlZone" ValidationGroup="workshop" InitialValue="-1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Country
                </td>
                <td valign="top">
                    <asp:TextBox ID="txtCountry" runat="server" MaxLength="50">Singapore</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Status
                </td>
                <td valign="top">
                    <asp:CheckBox ID="chkWorkShopStatus" runat="server" />
                </td>
            </tr>
            <tr>
                <td>                    
                </td>
                <td>
                    <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="Submit"
                        ValidationGroup="workshop" CssClass="btn blue" />
                    <asp:Button ID="btnClearForm" runat="server" CausesValidation="False" OnClick="btnClearForm_Click"
                        OnClientClick="return confirm('Are you sure to clear form?');" CssClass="btn blue" Text="Clear" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnBack" runat="server" OnClick="btnBack_Click" OnClientClick="return confirm('Are your sure to go back?');"
                        Text="Back" CssClass="btn green" />
                </td>
                <td>
                    <asp:Label ID="lblMessage" runat="server" ForeColor="Green" Font-Bold="true"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
